package org.bp.ioc.bean;


import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

public class Request {
    /**请求方法**/
    private String requsetMethod;
    /**请求路径**/
    private String requsetPath;

    public Request(String requsetMethod, String requsetPath) {
        this.requsetMethod = requsetMethod;
        this.requsetPath = requsetPath;
    }

    public String getRequsetMethod() {
        return requsetMethod;
    }

    public String getRequsetPath() {
        return requsetPath;
    }

    @Override
    public boolean equals(Object o) {
       return EqualsBuilder.reflectionEquals(this,o);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }
}
